home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / print / 890ps.arc / NETWARE.H < prev    next >
Text File  |  1990-01-08  |  3KB  |  76 lines

  1. /*
  2.   Constants, typedefs, and prototypes for some of the Novell NetWare 2.1x
  3.   system calls.  This library is multi-threaded - all functions prevent
  4.   re-entrancy into NetWare when used in TopSpeed C multi-threaded programs.
  5. */
  6.  
  7. #define OBJNAMEMAXLEN  47            /*  NetWare object max name length  */
  8. #define OBJPASSMAXLEN  127           /*  NetWare object max password length  */
  9.  
  10. typedef unsigned char byte;
  11. typedef unsigned int word;
  12. typedef unsigned long dword;
  13. typedef struct {
  14.           byte _ClientStation;
  15.           byte _ClientTask;
  16.           dword _ClientID;
  17.           dword _TargetID;
  18.           byte _TargetTime[6];
  19.           byte _EntryTime[6];
  20.           word _JobNumber;
  21.           word _JobType;
  22.           byte _JobPos;
  23.           byte _JobFlags;
  24.           char _JobFile[14];
  25.           byte _JobHandle[6];
  26.           byte _ServerStation;
  27.           byte _ServerTask;
  28.           dword _ServerID;
  29.         } QueueJobInfoStruct;
  30. typedef struct {
  31.           byte _Version;
  32.           byte _TabSize;
  33.           word _Copies;
  34.           word _Flags;
  35.           word _Lines;
  36.           word _Chars;
  37.           char _Form[16];
  38.           byte _reserved[6];
  39.           char _BannerName[13];
  40.           char _BannerFile[13];
  41.           char _HeaderFile[14];
  42.           char _Path[80];
  43.         } PrintJobClientStruct;
  44.  
  45. byte NetWare(word func, void *req, void *rep);
  46.  
  47. byte ChangeBinderyObjectPassword(const char *name, word type,
  48.                                  const char *oldpass, const char *newpass);
  49. byte DeleteBinderyObject(const char *name, word type);
  50. byte CreateBinderyObject(const char *name, word type, const char *password,
  51.                          byte security, byte flags);
  52. byte GetBinderyObjectID(const char *name, word type, dword *id);
  53.  
  54. byte LoginToFileServer(const char *name, word type, const char *password);
  55. byte EnterLoginArea(byte locals, const char *path);
  56. byte Logout(void);
  57.  
  58. byte AllocPermanentDirectoryHandle(char drive, byte dir, const char *path,
  59.                                    byte *handle, byte *rights);
  60.  
  61. byte CreateQueue(const char *name, word type, byte dir, const char *path,
  62.                  dword *id);
  63. byte AttachQueueServerToQueue(dword id);
  64. byte DetachQueueServerFromQueue(dword id);
  65. byte ServiceQueueJobAndOpenFile(dword id, word type,
  66.                                 QueueJobInfoStruct *info);
  67. byte FinishServicingQueueJobAndFile(dword id, word job, dword charge);
  68. byte ReadQueueCurrentStatus(dword id, byte *status, byte *jobs, byte *servers,
  69.                             dword sid[], byte stations[], byte *mserver);
  70. byte AbortServicingQueueJobAndFile(dword id, word job);
  71. byte ReadQueueJobEntry(dword id, word job, QueueJobInfoStruct *info,
  72.                        char jdesc[], byte client[]);
  73. byte ReadPrintJobInfo(dword id, word job, PrintJobClientStruct *client);
  74. byte GetQueueJobList(dword id, word *count, word jobs[], word *max);
  75. byte GetQueueJobsFileSize(dword id, word job, dword *size);
  76.